package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 销售车实体类
 */
@TableName("t_sellCar")
public class SellCarBean {
    /**销售车编号*/
    @TableId(value = "pk_sellCarId",type = IdType.AUTO)
    private Integer sellCarId;
    /**商品外键*/
    @TableField("fk_productId")
    private Integer productId;
    /**销售商品*/
    @TableField(exist = false)
    private ProductBean product;
    /**出库数量*/
    @TableField("s_outNum")
    private Integer outNum;

    /**销售员（登录人用户名）*/
    @TableField("s_userName")
    private String userName;

    public SellCarBean() {
    }

    public SellCarBean(Integer productId, Integer outNum, String userName) {
        this.productId = productId;
        this.outNum = outNum;
        this.userName = userName;
    }

    public Integer getSellCarId() {
        return sellCarId;
    }

    public void setSellCarId(Integer sellCarId) {
        this.sellCarId = sellCarId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getOutNum() {
        return outNum;
    }

    public void setOutNum(Integer outNum) {
        this.outNum = outNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    @Override
    public String toString() {
        return "SellCarBean{" +
                "sellCarId=" + sellCarId +
                ", product=" + product +
                ", outNum=" + outNum +
                ", userName='" + userName + '\'' +
                "}\n";
    }
}
